Display Settings PropertiesValidation Xbasic

Description

Xbasic can be added to this property to add custom validation rules for a field.

Discussion

Specify Xbasic code to test if the data in this field is valid. By default, only dirty fields are validated. You can specify that all fields should be validated in Update Settings > Editing Properties.

Videos

Data Validation

The Grid component has exceptionally strong data validation features. This video demonstrates the validation features available, including Data validation rules, Data validation using custom Xbasic at the field level, Data validation events, and automatically honoring Field Rules for DBF tables.

Validating Data

The UX Component has an extremely rich set of features for validating data in the component. Validation rules can be defined declaratively, or by using code (either Javascript for client-side or Xbasic for server-side). Validation rules are evaluated on the client where possible (thus eliminating the need for an Ajax callback). Validation rules can be set to fire when the dialog is submitted, or immediately when the user tabs out of a field.

These video discuss the various validation options in the UX Component.

The videos below discuss the validation features of Alpha Anywhere. While these videos were recorded for the UX Component, the discussions about Validation rules, Validation Xbasic, and Immediate Validation apply to the Grid Component.